<include file="../header" />
<body class="J_scroll_fixed">
<script type="text/javascript">
    $(function() {

        $("button#sub").click(function () {
            if (confirm("确定要提交出库？")) {
                $("button#sub").hide();
//                $("form").submit();
            } else {
                return false;
            }
        });
    })
//    function sumbit_sure(){
//        var gnl=confirm("确定要提交出库?");
//        if(gnl==true){
//            document.getElementById('sub').disabled=true;
//            return true;
//        }else{
//            return false;
//        }
//    }




</script>

<script type="text/javascript"  src="__TMP__/assets/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript"  src="__TMP__/assets/js/ueditor/ueditor.all.min.js"></script>
<div class="wrap jj">
    <div class="common-form">
        <form method="post" class="form-horizontal J_ajaxForm" action="{:U('finishedOrder/end')}">
            <fieldset>
                <input type="hidden" value="{$finishedOrder.finished_order_id}" name="id" />
                单号：{$finishedOrder.finished_order_no}，<a style="font-weight: bold">{$finisheProduct.name}</a>，<a style="color: #ed7667">{$finishedOrder.number}</a> 件，规格：<a style="color: #45A1DE">{$finishedOrder.size}</a> 单价：<a style="color: #ed7667">{$finishedOrder.sale_price}</a>， 总计：<a style="color: #ed7667">{$finishedOrder.total_price}</a>&nbsp;元，患者：{$finishedOrder.patient_name}
                <br/>
                业务员：<a style="color: #45a1de">{$sales.admin_name}</a>，渠道：<a>{$finishedOrder.agent_name}</a> <a style="color: #ffa451">[{$finishedOrder.payment_type}]</a>
                <br/>
                发票：<a style="color: #ed7667">{:getEnumString($defaultEnum, $finishedOrder['need_invoice'])}</a>，
                <if condition="$finishedOrder['need_invoice'] eq '1'">
                    名称 : <a style="color: #45A1DE">{$finishedOrder.invoice_name}</a>， 税号 : <a style="color: #ed7667">{$finishedOrder.invoice_number}</a>
                </if>
                <if condition="$finishedOrder['need_invoice'] neq '1'">
                    <br>明细 : {$finishedOrder.invoice_detail}
                </if>
                <br><a style="color: #ed7667">[{$finishedOrder.delivery_type}]</a> <a>{$finishedOrder.receive_name}，{$finishedOrder.receive_contact}</a>
                <if condition="$finishedOrder['delivery_type'] neq '自提'">
                    ，地址：<a>{$finishedOrder.receive_address}</a>
                </if>
                <br>备注：<a style="color: #ed7667">{$finishedOrder.note}</a>
                <br><br>
                <if condition="$finishedOrder['delivery_type'] eq '自提'">
                    <div class="control-group">
                        <label class="control-label">请确认业务员已自提</label>
                    </div>
                <else/>
                    <div class="control-group">
                        <label class="control-label">快递公司：</label>
                        <div class="controls">
                            <input type="text" class="input" name="expressCompany" value="">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">运单号：</label>
                        <div class="controls">
                            <input type="text" class="input" name="deliveryNumber" value="">
                        </div>
                    </div>
                </if>
            </fieldset>
            <div class="form-actions">
                <button id="sub" type="submit" class="btn btn-primary btn_submit">确认出库</button>
                <a class="btn" href="__URL__">返回</a>
            </div>
        </form>
    </div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>